package cmd

import (
	"fmt"
	"time"

	"github.com/github-user/hw5/myCobra"
)

var timeCmd = &myCobra.Command{
	Use:   "time",
	Short: "print the current time",
	Long: `A very cute subcmd of myApp, use to print the current time built with
			love by fjc in Go.
			Complete documentation is available at https://gitee.com/Fancylee66/cs_hw/tree/master/%E4%BD%9C%E4%B8%9A%E4%BA%94`,
	Run: func(cmd *myCobra.Command, args []string) {
		fmt.Println(time.Now())
	},
}
